import { http } from '@/server'
import type { ConfirmEnum } from './enum'

/** 确认任务 */
export const confirmTask = (id: number, is_confirm: ConfirmEnum) =>
    http.post(`/engineer/teacher/confirm-task/${id}`, { id, is_confirm })
